package com.example.smalldimplestore;

import android.app.Application;
import android.content.Context;
import android.support.multidex.MultiDex;

import com.example.smalldimplestore.util.LogUtil;

public class SmallApplication extends Application {

    public static boolean isShow = true;

    public static SmallApplication instance;

    public static SmallApplication getInstance(){
        if (instance == null) {
            instance = new SmallApplication();
        }
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        LogUtil.init( true );
    }

    //分个包,防止65533
    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }

}
